package fr.ordre66.vlcs.dto;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;

import com.google.appengine.api.datastore.Key;


/**
 * The persistent class for the user database table.
 * 
 */
@Entity
@Table(name="user")
@XmlRootElement(name = "user")
@XmlType(name = "", propOrder = {
    "login",
    "email",
    "familyname",
    "firstname"
})
public class User implements Serializable {
	private static final long serialVersionUID = 1L;

	@XmlTransient
	private Key id;
	
	private String login;

	private String email;

	private String familyname;

	private String firstname;
	
	@XmlTransient
	private String password;

    public User() {
    }

	@XmlTransient
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID", nullable = false)
	public Key getId() {
		return this.id;
	}

	public void setId(Key id) {
		this.id = id;
	}
	
	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFamilyname() {
		return this.familyname;
	}

	public void setFamilyname(String familyname) {
		this.familyname = familyname;
	}

	public String getFirstname() {
		return this.firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	@XmlTransient
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	
}